﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Zmotion406.Views
{
    public partial class ExerciseForm : UserControl
    {
        public ExerciseForm()
        {
            InitializeComponent();
        }

        private void button5_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            // 先判断是否已打开
            bool IsOpen = Application.OpenForms.OfType<Form>().Any(f=>f.GetType() == typeof(ProcessForm));
            if (IsOpen)
            {
                return;
            }
            Form process = new ProcessForm();
            process.ShowDialog();
        }
    }
}
